package counter;
import java.util.concurrent.atomic.AtomicLong;


public class AtomicCounter implements Counter{
	private AtomicLong count = new AtomicLong(0);
	
	@Override
	public void increment() {
		count.incrementAndGet();
	}
	
	@Override
	public long getCounter() {
		return count.get();
	}
	
	@Override
	public String toString() {
	    return "Atomic";
	}

}
